package com.oa.official.common.component;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 微信公众号读配置文件的值
 */
@Data
@Component
@ConfigurationProperties(prefix = "wechat")
@PropertySource(
        value = {"classpath:application-wechat.yaml"},
        encoding = "utf-8",
        ignoreResourceNotFound = true)
public class WechatAccountConfig {

    private String mpAppId;

    private String mpAppSecret;
}
